import axios from '@/api/fetch';
import SERVER from '@/api/server';


// PDI首页查询 
export const queryPDIInfoByPage = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/pdiMessage/queryPDIInfoByPage`, { params });

//PDI首页查询结果导出
export const excelForQueryPageInfo = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/pdiMessage/excelForQueryPage`, { params, responseType: 'blob' });

//PDI根据id查询明细
export const queryPDIDetailById = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/pdiMessage/queryPDIDetailById`, { params });

//下载图片
export const downLoadAttachImage = params =>
  axios.get(`${params}`, {
    responseType: 'blob'
  });